<!--  -->
<template>
    <el-image-viewer
        v-if="showPreview"
        :url-list="srcList"
        show-progress
        :initial-index="0"
        @close="showPreview = false"
      />
</template>

<script lang='ts' setup>
import { reactive,toRefs,ref,onMounted} from 'vue'
const props= defineProps(['fileUrl'])
const showPreview=ref(true);
const srcList=ref([import.meta.env.VITE_IMG_BASE_URL+props.fileUrl]);
</script>
<style scoped>
</style>